<!--
Punchit -- A simple timer of accumulated time (survives restarts).
Copyright (c) 2006 D. Robert Adams

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-->

<html>

<head>

<!-- The style sheet should be kept in a separate file; it contains the design for the widget -->
<style type="text/css">
	@import "Punchit.css";
</style>

<!-- The JavaScript file contains the logic needed for this widget -->
<script type='text/javascript' src='Punchit.js' charset='utf-8'/>

</head>

<body onload="setup();">

  <!-- Front of the widget.  -->
  <div id="front" onmousemove='mousemove(event);' onmouseout='mouseexit(event);'>
    
    <!-- Background, title, textarea, and button. -->
    <img span="backgroundImage" src="Default.png">  		
    <p class="elapsedTime" id="elapsedTimeLabel"></p>
    <img id="startButton" class="startButton" src="button_play.png" onClick="start();"/>
    <img id="stopButton" class="stopButton" src="button_pause.png" onClick="stop();"/>
    <img id="resetButton" class="resetButton" src="button_reset.png" onClick="reset();"/>
      
    <!-- Here is the "i" button. -->
		<div class='flip' id='flip' onclick='showBack();' 
      onmouseover='enterflip(event);' onmouseout='exitflip(event)'></div>
		<div class='flip' id='fliprollie'></div>
  </div>
  
  <!-- Back of the widget. -->
  <div id="back">
  
    <img span="backgroundImage" src="back.png">  
    
    <input id="addBox" class="small" type="text" />
    <input id="addButton" type="submit" value="+ Min" onClick="addTime();" />
    
    <!-- Done button -->
    <input type="submit" class="donebutton" value="Done" onClick='showFront();' />
  </div>

</body>

</html>